package org.zachary.imitation.raft;

/**
 * 节点选举时的优先级
 *
 * Created by guozhaokun on 2024/8/30 15:32.
 */
public class ElectionPriority {

	/** 节点禁用按照优先级进行选举 **/
	public static final int DISABLED = -1;

	/** 节点永远不会参与选举，也就意味着永远不会成为 Leader */
	public static final int NOT_ELECTED = 0;

	/** 节点选举优先级的最小值。优先级数值越高表示优先级越高，节点越有可能被选举为 Leader */
	public static final int MIN_VALUE = 1;
}
